<?php 

/**
* 控制器基类
*/
class Controller 
{	
	public $data=array();//接收变量
	/**
	 * [display 引模板]
	 * @Author   Xuebingsi
	 * @DateTime 2017-07-26T11:55:29+0800
	 * @return   [type]                   [description]
	 */
	public function display()
	{
		extract($this->data);
		include VIEW_PATH."/".CONTROLLERLE_NAME.'/'.ACTION_NAME.".html";
	}
	/**
	 * [assgin 分配变量]
	 * @Author   Xuebingsi
	 * @DateTime 2017-07-26T11:55:40+0800
	 * @param    [type]                   $key   [description]
	 * @param    [type]                   $value [description]
	 * @return   [type]                          [description]
	 */
	public function assgin($key,$value)
	{
		$this->data[$key]=$value;
	}
}

















 ?>